import Layout from '@/layout'

const inventoryRouter = {
  path: '/inventory',
  component: Layout,
  name: 'Inventory',
  redirect: '/inventory/index',
  meta: {
    title: '库存查询',
    icon: 'search',
  },
  children: [
    {
      path: 'index',
      // component: () => import('@/views/inventory/index'),
      component: (resolve) => require(['@/views/inventory/index'], resolve),
      name: 'InventoryIndex',
      meta: { title: '生坯仓库查询' }
    },
    {
        path: 'billetedWarehouseSearch',
        component: (resolve) => require(['@/views/inventory/billtedInventory'], resolve),
        // component: () => import('@/views/inventory/billtedInventory'),
        name: 'billetedWarehouseSearch',
        meta: { title: '熟坯仓库查询'}
    },
  ]
}
export default inventoryRouter